package com.wzh.common.constant;

public enum ProductConstant {

    ATTR_TYPE_SALE(0,"销售属性"),
    ATTR_TYPE_BASE(1,"基本属性"),
    ATTR_SEARCH_NO(0,"不需要检索"),
    ATTR_SEARCH_YES(1,"需要检索");

    private String msg;
    private int code;

    ProductConstant( int code,String msg) {
        this.msg = msg;
        this.code = code;
    }

    public int getCode() {
        return code;
    }

    public String getMsg() {
        return msg;
    }

    public  enum  StatusEnum{
        NEW_UP(0,"新建"),
        SPU_UP(1,"上架"),
        SPU_DOWN(2,"下架");

        private String msg;
        private int code;

        StatusEnum( int code,String msg) {
            this.msg = msg;
            this.code = code;
        }

        public int getCode() {
            return code;
        }

        public String getMsg() {
            return msg;
        }
    }
}
